const rollup = require('rollup');
const path = require('path')
const resolve = require('rollup-plugin-node-resolve')


const inputOptions = {
    input: path.resolve('src/main.js') ,
    plugins: [ resolve() ],
}

const outputOptions = {
    file: path.resolve('build/main.js'),
    format: 'cjs',
}

async function build() {
    const bundle = await rollup.rollup(inputOptions);


    




    const { code, map } = await bundle.generate(outputOptions);

    // or write the bundle to disk
    await bundle.write(outputOptions);

}

build()
































